# 定义宿舍信息字典，键为宿舍成员姓名，值为包含其他信息的字典
dormitory = {
    "张三": {
        "爱好": {"篮球", "阅读"},
        "联系方式": ("13800138000", "zhangsan@example.com"),
        "床位号": 1
    },
    "李四": {
        "爱好": {"绘画", "音乐"},
        "联系方式": ("13900139000", "lisi@example.com"),
        "床位号": 2
    },
    "王五": {
        "爱好": {"编程", "游泳"},
        "联系方式": ("13700137000", "wangwu@example.com"),
        "床位号": 3
    }
}

# 打印宿舍所有成员姓名
members = list(dormitory.keys())
print("宿舍成员姓名:", members)

# 打印某个成员的爱好
print("张三的爱好:", dormitory["张三"]["爱好"])

# 打印所有成员的床位号
bed_numbers = [dormitory[member]["床位号"] for member in dormitory]
print("所有成员的床位号:", bed_numbers)

# 打印所有成员的邮箱
emails = [contact[1] for member in dormitory for contact in [dormitory[member]["联系方式"]]]
print("所有成员的邮箱:", emails)
